<?php


namespace dsp\mediator\conceptual;


class Component1 extends BaseComponent
{
    public function doA()
    {
        echo "Component 1 does A" . PHP_EOL;
        $this->mediator->notify($this, "A");
    }

    public function doB()
    {
        echo "Component 1 does B" . PHP_EOL;
        $this->mediator->notify($this, "B");
    }
}